package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import com.chad.library.adapter.base.entity.MultiItemEntity
import kotlinx.android.parcel.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2023/3/3 14:45
 * @Describe    :
 */
@Parcelize
class AfterSalesListResponse(

    var total: Int = 0,
    var list: ArrayList<ListGoods> = ArrayList(),

    ) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @Parcelize
    class ListGoods(
        var shopId: Int = 0,
        var shopName:String = "",
        var shopOrderId:Int = 0,
        var shopExpressFee:Double = 0.00,
        var orderStatus:Int = 0,
        var orderId:Int = 0,
        var receiveEditCnt:Int = 0,
        var expressNo:String = "",
        var goodName: String = "",
        var specName: String = "",
        var specImg: String = "",
        var salePrice: Double = 0.00,
        var expressFee: Double = 0.00,//运费
        var amount: Int = 0,
        var id: Int = 0,
        var goodId: Int = 0, override val itemType: Int

    ) : Parcelable, MultiItemEntity
}
